#include "axspec.h"

struct axspeclist
{
  struct axspec *axspecs[8];
  int length;
};

struct axspeclist *axspeclist_create()
{
  struct axspeclist *axspeclist = malloc(sizeof(struct axspeclist));
  axspeclist->length = 0;
  return axspeclist;
}

void axspeclist_add(struct axspeclist *axspeclist, struct axspec *axspec)
{
  axspeclist->axspecs[axspeclist->length++] = axspec;
}

void axspeclist_dump(struct axspeclist *axspeclist)
{
  int i;

  for (i = 0; i < axspeclist->length; i++) {
    axspec_dump(axspeclist->axspecs[i]);
  }
}

